﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace StackOverflow.WebApp.Controllers
{
    [RoutePrefix("users")]
    public class UsersController : Controller
    {
        /// <summary>
        /// 用户
        /// </summary>
        /// <returns></returns>
        [Route("")]
        public ActionResult Users()
        {
            ViewBag.Title = "用户-StackOverflow";
            return View();
        }

        /// <summary>
        /// 登录
        /// </summary>
        /// <returns></returns>
        [Route("login")]
        public ActionResult LogIn()
        {
            ViewBag.Title = "登录 - StackOverflow";
            return View();
        }

        /// <summary>
        /// 注册
        /// </summary>
        /// <returns></returns>
        [Route("signup")]
        public ActionResult SignUp()
        {
            ViewBag.Title = "注册 - StackOverflow";
            return View();
        }
    }
}